using System;
using System.Collections.Generic;
using System.Text;

using SchEdu.Framework.Algorithm;
using SchEdu.Framework.DataModel;
using SchEdu.Framework.Exceptions;
using SchEdu.Framework.Validators;

namespace Lawler
{
    public class LawlerTardinessAlgorithm : LawlerAlgorithm
    {

        public LawlerTardinessAlgorithm()
            : base()
        {
        }
        public LawlerTardinessAlgorithm(SchEduData schEduData)
            : base(schEduData)
        {
        }

        protected override int GetCost(SchEduDataSet.OrderRow order, int t)
        {
            return Math.Max((t - order.DueDate), 0);
        }

        public override AboutInfo AboutInfo
        {
            get
            {
                AboutInfo aboutInfo = new AboutInfo();
                aboutInfo.Title = "Lawler (Min Tardiness)";
                aboutInfo.Guid = new Guid("{F6ED48A9-DCD3-47b5-AC10-7A267531C8AE}");
                return aboutInfo;
            }
        }


    }
}
